<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>新增危险源清单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../../../css/public.css" media="all"/>
    <link rel="stylesheet" href="../../common/zTreeStyle.css"/>
    <link rel="stylesheet" href="subject.css"/>
</head>

<body class="childrenBody" style="background: white;">
<div class="topsty">
    <div style="display: inline;"><span style="font-size: 15px;"><i class="layui-icon"
                                                                    style="color: #1E9FFF;margin:0 10px 0 30px;">&#xe65b;</i><span
            id="pageTitle">题库管理</span></span>
    </div>
    <div class="backtit" style="top: -5px;">
        <div class="back_san"></div>
        <a class="layui-btn layui-btn-normal" onclick="history.go(-1)">返回</a>
    </div>
</div>
<form class="layui-form" style="margin-top: 14px;margin-bottom: 15px;">
    <div class="layui-inline" style="position: relative;top: -2px;">
        <div class="layui-input-inline">
            <input type="text" class="layui-input searchVal" id="title" placeholder="题目内容"/>
        </div>
        <a class="layui-btn  layui-btn-normal layui-btn-sm" style="position: relative;top: 0px; left:-4px;"
           id="findscri" data-type="reload"><i class="layui-icon">&#xe615;</i></a>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">业务分类</label>
        <div class="layui-input-block" style="position: relative;margin-left:80px">
            <select id="differServ">
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">试题分类</label>
        <div class="layui-input-block" style="position: relative;margin-left:80px">
            <select id="typeName">
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">题型</label>
        <div class="layui-input-block" style="position: relative;margin-left:80px">
            <select id="questionType">
                <option value="">请选择</option>
                <option value="0">单选题</option>
                <option value="1">多选题</option>
                <option value="2">判断题</option>
            </select>
        </div>
    </div>

    <div class="layui-inline">
        <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" id="seleCheck" style="position: relative;top: -3px;margin-left:10px;">筛选
        </button>
    </div>
    <div class="subject_box">
        <div class="layui-form form_title">
            <div class="layui-inline">
                <span class="allcheck">
                    <input type="checkbox" name="layTableCheckbox" lay-skin="primary">全选
                </span>
                <span class="subject_num">当前筛选：共{{count}}道题目</span>
            </div>
            <div class="btn_box">
                <div class="layui-inline" style="float: right;margin-left: 30px;">
                    <a class="layui-btn layui-btn-danger layui-btn-sm layui-btn-normal layui-bg-blue del_btn">删除</a>
                </div>
                <div class="layui-inline" style="float: right;margin-left: 30px;">
                    <a class="layui-btn layui-btn-sm layui-btn-danger layui-btn-normal layui-bg-blue edit_btn">编辑</a>
                </div>
                <div class="layui-inline" style="float: right;margin-left:30px;">
                    <a class="layui-btn layui-btn-sm layui-btn-normal add_btn">添加试题</a>
                </div>
                <div class="layui-inline" style="float: right;margin-left:30px;">
                    <a class="layui-btn layui-btn-sm layui-btn-normal layui-bg-blue import_btn">批量上传</a>
                </div>
            </div>
        </div>
        <div class="subject" v-for="(items,indexs) in list">
            <div class="name">
                <span class="num">
                    <input type="checkbox" name="layTableCheckbox" lay-skin="primary" :id="items.id" :questionType="items.questionType">
                    <span>{{indexs+10*(page-1)+1}}</span>
                </span>
                <span class="type" v-if="items.questionType == 0">单选题</span>
                <span class="type" v-if="items.questionType == 1">多选题</span>
                <span class="type" v-if="items.questionType == 2">判断题</span>
                <span class="text">
                    <div>{{items.title}}</div>
                    <img v-for="item in items.fileId" :src="baseurl + 'attachment/seekFile/' + item" alt=""></span>
            </div>
            <div class="option_box">
                <ul>
                    <li v-for="item in items.options">
                        <div class="option_num">{{item.key}}</div>
                        <div class="text">
                            <div>{{item.value}}</div>
                            <img v-for="img in item.fileId" :src="baseurl + 'attachment/seekFile/' + img" alt="">
                        </div>
                        <div class="true" v-if="item.answer == 1">【正解】</div>
                    </li>
                    <li>
                        <div class="option_num">解析</div>
                        <div class="text">
                            <div>{{items.parse}}</div>
                            <img v-for="item in items.parseFileId" :src="baseurl + 'attachment/seekFile/' + item" alt="">
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div id="demo0"></div>
    <div class="choice_box">
        <div class="choice_num">
            当前所选试题数 <br>
            <span>0</span>题
        </div>
        <div class="sure">确   定</div>
    </div>
</form>
<script type="text/javascript" src="../../common/jquery.min.js"></script>
<script type="text/javascript" src="../../common/config.js"></script>
<script type="text/javascript" src="../../../layui/layui.js"></script>
<script type="text/javascript" src="../../common/jquery.ztree.core.js"></script>
<script type="text/javascript" src="../../common/jquery.ztree.excheck.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script type="text/javascript" src="subject.js"></script>

<script>
    $("body").click(function () {
        $("#applyUnitTree").hide();
    })
    $('#applyUnit').click(function () {
        return false;
    });
    $('#applyUnitTree').click(function () {
        return false;
    });

</script>
</body>

</html>